From: Ken Brown Date: Sun, 24 Mar 2013 00:48:49 +0000 (-0400) Subject: * src/w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~3615^2~526^2~106 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=789b5e9a7fa4c94364ddd6da7b22ecb9d1620477;p=emacs.git * src/w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro. --- diff --git a/src/ChangeLog b/src/ChangeLog index a3747844c65..c4e57537522 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,9 @@ 2013-03-24 Ken Brown + * w32fns.c (emacs_abort) [CYGWIN]: Define `_open' as a macro to + fix compilation on 64-bit Cygwin, where underscores are not + automatically prepended. + * w32term.c (w32_initialize): Silence compiler warning. 2013-03-23 Eli Zaretskii diff --git a/src/w32fns.c b/src/w32fns.c index 4c47465e67b..88141893445 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -7759,6 +7759,9 @@ emacs_abort (void) #endif if (stderr_fd >= 0) write (stderr_fd, "\r\nBacktrace:\r\n", 14); +#ifdef CYGWIN +#define _open open +#endif errfile_fd = _open ("emacs_backtrace.txt", O_RDWR | O_CREAT | O_BINARY, S_IREAD | S_IWRITE); if (errfile_fd >= 0) {